﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Model.ItemServicoModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<h2>ExibirItensAtuaisCarrinho</h2>

<p>
    <%: Html.ActionLink("Create New", "Create") %>
</p>
<table>
    <tr>
        <th>
            Nome Servico
        </th>
       
        <th>
            quantidade
        </th>
        <th>
            valor Unitario
        </th>
        <th>
            valor Total
        </th>
        
        <th></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.idItem) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.idSolicitacao) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.idPrestador) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.idServico) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.idCarrinho) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.quantidade) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.valor) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.valorTotal) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.nomeServico) %>
        </td>
        <td>
          <%: Html.ActionLink("Excluir", "Delete", new { /* id=item.PrimaryKey */ }) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Header" runat="server">
<%: Html.Partial("ParcialBuscaCliente", ViewData["prestador"])%> 
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Menu" runat="server">
</asp:Content>
